package Proyecto.Modelo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Set;


/**
 * The persistent class for the localservicios database table.
 * 
 */
@Entity
@Table(name="localservicios")
public class Localservicio implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int idServicios;

	private String bitActivo;

	private String descripcion;

	private String index;

	private String urlImagen;

	//bi-directional many-to-many association to Local
    @ManyToMany
	@JoinTable(
		name="localservicios_has_local"
		, joinColumns={
			@JoinColumn(name="LocalServicios_idServicios")
			}
		, inverseJoinColumns={
			@JoinColumn(name="Local_idLocal")
			}
		)
	private Set<Local> locals;

    public Localservicio() {
    }

	public int getIdServicios() {
		return this.idServicios;
	}

	public void setIdServicios(int idServicios) {
		this.idServicios = idServicios;
	}

	public String getBitActivo() {
		return this.bitActivo;
	}

	public void setBitActivo(String bitActivo) {
		this.bitActivo = bitActivo;
	}

	public String getDescripcion() {
		return this.descripcion;
	}

	public void setDescripcion(String descripcion) {
		this.descripcion = descripcion;
	}

	public String getIndex() {
		return this.index;
	}

	public void setIndex(String index) {
		this.index = index;
	}

	public String getUrlImagen() {
		return this.urlImagen;
	}

	public void setUrlImagen(String urlImagen) {
		this.urlImagen = urlImagen;
	}

	public Set<Local> getLocals() {
		return this.locals;
	}

	public void setLocals(Set<Local> locals) {
		this.locals = locals;
	}
	
}